/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package events;

import java.util.EventObject;

/**
 *
 * @author Kurt
 */
public class UserEvent extends EventObject {
    
    final String USER_LOGIN_EVENT = "USER_LOGIN_EVENT";
    final String USER_LOGIN_SUCCESS_EVENT = "USER_LOGIN_SUCCESS_EVENT";
    final String USER_LOGIN_FAIL_EVENT = "USER_LOGIN_FAIL_EVENT";
    final String USER_LOGOUT_EVENT = "USER_LOGOUT_EVENT";
    final String ADD_USER_EVENT = "ADD_USER_EVENT";
    final String UPDATE_USER_EVENT = "UPDATE_USER_EVENT";
    final String DELETE_USER_EVENT = "DELETE_USER_EVENT";
    final String EXPORT_USER_EVENT = "EXPORT_USER_EVENT";
    final String IMPORT_USER_EVENT = "IMPORT_USER_EVENT";
    
    private Object data;
    
    public UserEvent(Object source, Object d){
        super(source);
        this.data = d;
    }
        
   public Object getData(){
        return data;
    }
    
}
